<?php
/**
 * Created by PHPStorm
 * User: xiest
 * Date: 2021/10/8
 * Email: <939369942@qq.com>
 */
namespace app\controller\api\user;

use app\BaseController;
use app\common\repositories\user\UserBalanceRepository as repository;
use think\App;

class Balance extends BaseController
{
    protected repository $repository;

    public function __construct(App $app, repository $repository)
    {
        parent::__construct($app);
        $this->repository = $repository;
    }


    public function lst()
    {
        [$page, $limit] = $this->page();
        $where = ['uid'=>request()->uid()];
        return app('json')->success($this->repository->getApiList($where,$page,$limit));
    }

}